home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / DEV / A-B / 606+gest.cpt / Errors.p < prev    next >
Text File  |  1990-10-17  |  17KB  |  366 lines

  1. {    This file has been processed by The THINK Pascal Source Converter, v1.1.    }
  2.  
  3. {}
  4. {Created: Friday, October 20, 1989 at 2:48 AM}
  5. {    Errors.p}
  6. {    Pascal Interface to the Macintosh Libraries}
  7. {}
  8. {    Copyright Apple Computer, Inc.    1985-1990}
  9. {    All rights reserved}
  10. {}
  11. {Converted from the 6.0.6  beta 19 interfaces -MYG}
  12.  
  13. unit Errors;
  14. interface
  15.  
  16.     const
  17.         qErr = -1;                    {queue element not found during deletion}
  18.         vTypErr = -2;                {invalid queue element}
  19.         corErr = -3;                {core routine number out of range}
  20.         unimpErr = -4;                {unimplemented core routine}
  21.         seNoDB = -8;                {no debugger installed to handle debugger command}
  22.         controlErr = -17;            {I/O System Errors}
  23.         statusErr = -18;            {I/O System Errors}
  24.         readErr = -19;                {I/O System Errors}
  25.         writErr = -20;                {I/O System Errors}
  26.         badUnitErr = -21;            {I/O System Errors}
  27.         unitEmptyErr = -22;         {I/O System Errors}
  28.         openErr = -23;                {I/O System Errors}
  29.         closErr = -24;                {I/O System Errors}
  30.         dRemovErr = -25;            {tried to remove an open driver}
  31.         dInstErr = -26;             {DrvrInstall couldn't find driver in resources }
  32.         abortErr = -27;             {IO call aborted by KillIO}
  33.         iIOAbortErr = -27;            {IO abort error (Printing Manager)}
  34.         notOpenErr = -28;            {Couldn't rd/wr/ctl/sts cause driver not opened}
  35.         dirFulErr = -33;            {Directory full}
  36.         dskFulErr = -34;            {disk full}
  37.         nsvErr = -35;                {no such volume}
  38.         ioErr = -36;                {I/O error (bummers)}
  39.         bdNamErr = -37;             {there may be no bad names in the final system!}
  40.         fnOpnErr = -38;             {File not open}
  41.         eofErr = -39;                {End of file}
  42.         posErr = -40;                {tried to position to before start of file (r/w)}
  43.         mFulErr = -41;                {memory full (open) or file won't fit (load)}
  44.         tmfoErr = -42;                {too many files open}
  45.         fnfErr = -43;                {File not found}
  46.         wPrErr = -44;                {diskette is write protected.}
  47.         fLckdErr = -45;             {file is locked}
  48.         vLckdErr = -46;             {volume is locked}
  49.         fBsyErr = -47;                {File is busy (delete)}
  50.         dupFNErr = -48;             {duplicate filename (rename)}
  51.         opWrErr = -49;                {file already open with with write permission}
  52.         paramErr = -50;             {error in user parameter list}
  53.         rfNumErr = -51;             {refnum error}
  54.         gfpErr = -52;                {get file position error}
  55.         volOffLinErr = -53;         {volume not on line error (was Ejected)}
  56.         permErr = -54;                {permissions error (on file open)}
  57.         pixMapTooDeepErr = -148;
  58.         volOnLinErr = -55;            {drive volume already on-line at MountVol}
  59.         nsDrvErr = -56;             {no such drive (tried to mount a bad drive num)}
  60.         noMacDskErr = -57;            {not a mac diskette (sig bytes are wrong)}
  61.         extFSErr = -58;             {volume in question belongs to an external fs}
  62.         fsRnErr = -59;                {file system internal error:during rename the old entry was deleted but could not be restored.}
  63.         badMDBErr = -60;            {bad master directory block}
  64.         wrPermErr = -61;            {write permissions error}
  65.         fontDecError = -64;         {error during font declaration}
  66.         fontNotDeclared = -65;        {font not declared}
  67.         fontSubErr = -66;            {font substitution occured}
  68.         firstDskErr = -84;            {I/O System Errors}
  69.         lastDskErr = -64;            {I/O System Errors}
  70.         noDriveErr = -64;            {drive not installed}
  71.         offLinErr = -65;            {r/w requested for an off-line drive}
  72.         noNybErr = -66;             {couldn't find 5 nybbles in 200 tries}
  73.         noAdrMkErr = -67;            {couldn't find valid addr mark}
  74.         dataVerErr = -68;            {read verify compare failed}
  75.         badCksmErr = -69;            {addr mark checksum didn't check}
  76.         badBtSlpErr = -70;            {bad addr mark bit slip nibbles}
  77.         noDtaMkErr = -71;            {couldn't find a data mark header}
  78.         badDCksum = -72;            {bad data mark checksum}
  79.         badDBtSlp = -73;            {bad data mark bit slip nibbles}
  80.         wrUnderrun = -74;            {write underrun occurred}
  81.         cantStepErr = -75;            {step handshake failed}
  82.         tk0BadErr = -76;            {track 0 detect doesn't change}
  83.         initIWMErr = -77;            {unable to initialize IWM}
  84.         twoSideErr = -78;            {tried to read 2nd side on a 1-sided drive}
  85.         spdAdjErr = -79;            {unable to correctly adjust disk speed}
  86.         seekErr = -80;                {track number wrong on address mark}
  87.         sectNFErr = -81;            {sector number never found on a track}
  88.         fmt1Err = -82;                {can't find sector 0 after track format}
  89.         fmt2Err = -83;                {can't get enough sync}
  90.         verErr = -84;                {track failed to verify}
  91.         clkRdErr = -85;             {unable to read same clock value twice}
  92.         clkWrErr = -86;             {time written did not verify}
  93.         prWrErr = -87;                {parameter ram written didn't read-verify}
  94.         prInitErr = -88;            {InitUtil found the parameter ram uninitialized}
  95.         rcvrErr = -89;                {SCC receiver error (framing; parity; OR)}
  96.         breakRecd = -90;            {Break received (SCC)}
  97.         ddpSktErr = -91;            {error in soket number}
  98.         ddpLenErr = -92;            {data length too big}
  99.         noBridgeErr = -93;            {no network bridge for non-local send}
  100.         lapProtErr = -94;            {error in attaching/detaching protocol}
  101.         excessCollsns = -95;        {excessive collisions on write}
  102.         portInUse = -97;            {driver Open error code (port is in use)}
  103.         portNotCf = -98;            {driver Open error code (parameter RAM not configured for this connection)}
  104.         memROZErr = -99;            {hard error in ROZ}
  105.         memROZWarn = -99;            {soft error in ROZ}
  106.         noScrapErr = -100;            {No scrap exists error}
  107.         noTypeErr = -102;            {No object of that type in scrap}
  108.         memFullErr = -108;            {Not enough room in heap zone}
  109.         nilHandleErr = -109;        {Master Pointer was NIL in HandleZone or other}
  110.         memWZErr = -111;            {WhichZone failed (applied to free block)}
  111.         memPurErr = -112;            {trying to purge a locked or non-purgeable block}
  112.         memAdrErr = -110;            {address was odd; or out of range}
  113.         memAZErr = -113;            {Address in zone check failed}
  114.         memPCErr = -114;            {Pointer Check failed}
  115.         memBCErr = -115;            {Block Check failed}
  116.         memSCErr = -116;            {Size Check failed}
  117.         memLockedErr = -117;        {trying to move a locked block (MoveHHi)}
  118.         dirNFErr = -120;            {Directory not found}
  119.         tmwdoErr = -121;            {No free WDCB available}
  120.         badMovErr = -122;            {Move into offspring error}
  121.         wrgVolTypErr = -123;        {Wrong volume type error [operation not supported for MFS]}
  122.         volGoneErr = -124;            {Server volume has been disconnected.}
  123.         userCanceledErr = -128;     {User canceled out of an operation status.}
  124.         fidNotFound = -1300;        {no file thread exists.}
  125.         fidExists = -1301;            {file id already exists}
  126.         NotAFileErr = -1302;        {directory specified}
  127.         DiffVolErr = -1303;         {files    on different volumes}
  128.         resNotFound = -192;         {Resource not found}
  129.         resFNotFound = -193;        {Resource file not found}
  130.         addResFailed = -194;        {AddResource failed}
  131.         addRefFailed = -195;        {AddReference failed}
  132.         rmvResFailed = -196;        {RmveResource failed}
  133.         rmvRefFailed = -197;        {RmveReference failed}
  134.         resAttrErr = -198;            {attribute inconsistent with operation}
  135.         mapReadErr = -199;            {map inconsistent with operation}
  136.         editionMgrInitErr = -450;        { edition manager not inited by this app }
  137.         badSectionErr = -451;            { not a valid SectionRecord }
  138.         notRegisteredSectionErr = -452; { not a registered SectionRecord }
  139.         badEditionFileErr = -453;        { edition file is corrupt }
  140.         badSubPartErr = -454;            { can not use sub parts in this release }
  141.         multiplePublisherWrn = -460;    { A Publisher is already registered for that container }
  142.         containerNotFoundWrn = -461;    { could not find editionContainer at this time }
  143.         containerAlreadyOpenWrn = -462; { container already opened by this section }
  144.         notThePublisherWrn = -463;        { not the first registered publisher for that container }
  145.         userBreak = -490;            {user debugger break}
  146.         strUserBreak = -491;        {user debugger break; display string on stack}
  147.         exUserBreak = -492;         {user debugger break; execute debugger commands on stack}
  148.         nbpBuffOvr = -1024;         {Buffer overflow in LookupName}
  149.         nbpNoConfirm = -1025;
  150.         nbpConfDiff = -1026;        {Name confirmed at different socket}
  151.         nbpDuplicate = -1027;        {Duplicate name exists already}
  152.         nbpNotFound = -1028;        {Name not found on remove}
  153.         nbpNISErr = -1029;            {Error trying to open the NIS}
  154.         aspBadVersNum = -1066;        {Server cannot support this ASP version}
  155.         aspBufTooSmall = -1067;     {Buffer too small}
  156.         aspNoMoreSess = -1068;        {No more sessions on server}
  157.         aspNoServers = -1069;        {No servers at that address}
  158.         aspParamErr = -1070;        {Parameter error}
  159.         aspServerBusy = -1071;        {Server cannot open another session}
  160.         aspSessClosed = -1072;        {Session closed}
  161.         aspSizeErr = -1073;         {Command block too big}
  162.         aspTooMany = -1074;         {Too many clients (server error)}
  163.         aspNoAck = -1075;            {No ack on attention request (server err)}
  164.         reqFailed = -1096;
  165.         tooManyReqs = -1097;
  166.         tooManySkts = -1098;
  167.         badATPSkt = -1099;
  168.         badBuffNum = -1100;
  169.         noRelErr = -1101;
  170.         cbNotFound = -1102;
  171.         noSendResp = -1103;
  172.         noDataArea = -1104;
  173.         reqAborted = -1105;
  174.         buf2SmallErr = -3101;
  175.         noMPPErr = -3102;
  176.         ckSumErr = -3103;
  177.         extractErr = -3104;
  178.         readQErr = -3105;
  179.         atpLenErr = -3106;
  180.         atpBadRsp = -3107;
  181.         recNotFnd = -3108;
  182.         sktClosedErr = -3109;
  183.         afpAccessDenied = -5000;
  184.         afpAuthContinue = -5001;
  185.         afpBadUAM = -5002;
  186.         afpBadVersNum = -5003;
  187.         afpBitmapErr = -5004;
  188.         afpCantMove = -5005;
  189.         afpDenyConflict = -5006;
  190.         afpDirNotEmpty = -5007;
  191.         afpDiskFull = -5008;
  192.         afpEofError = -5009;
  193.         afpFileBusy = -5010;
  194.         afpFlatVol = -5011;
  195.         afpItemNotFound = -5012;
  196.         afpLockErr = -5013;
  197.         afpMiscErr = -5014;
  198.         afpNoMoreLocks = -5015;
  199.         afpNoServer = -5016;
  200.         afpObjectExists = -5017;
  201.         afpObjectNotFound = -5018;
  202.         afpParmErr = -5019;
  203.         afpRangeNotLocked = -5020;
  204.         afpRangeOverlap = -5021;
  205.         afpSessClosed = -5022;
  206.         afpUserNotAuth = -5023;
  207.         afpCallNotSupported = -5024;
  208.         afpObjectTypeErr = -5025;
  209.         afpTooManyFilesOpen = -5026;
  210.         afpServerGoingDown = -5027;
  211.         afpCantRename = -5028;
  212.         afpDirNotFound = -5029;
  213.         afpIconTypeError = -5030;
  214.         afpVolLocked = -5031;        {Volume is Read-Only}
  215.         afpObjectLocked = -5032;    {Object is M/R/D/W inhibited}
  216.         envNotPresent = -5500;        {returned by glue.}
  217.         envBadVers = -5501;         {Version non-positive}
  218.         envVersTooBig = -5502;        {Version bigger than call can handle}
  219.         evtNotEnb = 1;                {event not enabled at PostEvent}
  220.         dsSysErr = 32767;            {general system error}
  221.         dsBusError = 1;             {bus error }
  222.         dsAddressErr = 2;            {address error}
  223.         dsIllInstErr = 3;            {illegal instruction error}
  224.         dsZeroDivErr = 4;            {zero divide error}
  225.         dsChkErr = 5;                {check trap error}
  226.         dsOvflowErr = 6;            {overflow trap error}
  227.         dsPrivErr = 7;                {privilege violation error}
  228.         dsTraceErr = 8;             {trace mode error}
  229.         dsLineAErr = 9;             {line 1010 trap error}
  230.         dsLineFErr = 10;            {line 1111 trap error}
  231.         dsMiscErr = 11;             {miscellaneous hardware exception error}
  232.         dsCoreErr = 12;             {unimplemented core routine error}
  233.         dsIrqErr = 13;                {uninstalled interrupt error}
  234.         dsIOCoreErr = 14;            {IO Core Error}
  235.         dsLoadErr = 15;             {Segment Loader Error}
  236.         dsFPErr = 16;                {Floating point error}
  237.         dsNoPackErr = 17;            {package 0 not present}
  238.         dsNoPk1 = 18;                {package 1 not present}
  239.         dsNoPk2 = 19;                {package 2 not present}
  240.         dsNoPk3 = 20;                {package 3 not present}
  241.         dsNoPk4 = 21;                {package 4 not present}
  242.         dsNoPk5 = 22;                {package 5 not present}
  243.         dsNoPk6 = 23;                {package 6 not present}
  244.         dsNoPk7 = 24;                {package 7 not present}
  245.         dsMemFullErr = 25;            {out of memory!}
  246.         dsBadLaunch = 26;            {can't launch file}
  247.         dsFSErr = 27;                {file system map has been trashed}
  248.         dsStknHeap = 28;            {stack has moved into application heap}
  249.         dsReinsert = 30;            {request user to reinsert off-line volume}
  250.         dsNotThe1 = 31;             {not the disk I wanted}
  251.         negZcbFreeErr = 33;         {ZcbFree has gone negative}
  252.         dsGreeting = 40;            {welcome to Macintosh greeting}
  253.         dsFinderErr = 41;            {can't load the Finder error}
  254.         shutDownAlert = 42;         {handled like a shutdown error}
  255.         menuPrgErr = 84;            {happens when a menu is purged}
  256.         swOverrunErr = 1;            {serial driver error masks}
  257.         parityErr = 16;             {serial driver error masks}
  258.         hwOverrunErr = 32;            {serial driver error masks}
  259.         framingErr = 64;            {serial driver error masks}
  260.         cMatchErr = -150;            {Color2Index failed to find an index}
  261.         cTempMemErr = -151;         {failed to allocate memory for temporary structures}
  262.         cNoMemErr = -152;            {failed to allocate memory for structure}
  263.         cRangeErr = -153;            {range error on colorTable request}
  264.         cProtectErr = -154;         {colorTable entry protection violation}
  265.         cDevErr = -155;             {invalid type of graphics device}
  266.         cResErr = -156;             {invalid resolution for MakeITable}
  267.         unitTblFullErr = -29;        {unit table has no more entries}
  268.         dceExtErr = -30;            {dce extension error}
  269.         dsBadSlotInt = 51;            {unserviceable slot interrupt}
  270.         dsBadSANEopcode = 81;        {bad opcode given to SANE Pack4}
  271.         dsNoPatch = 98;             {Can't patch for particular Model Mac}
  272.         dsBadPatch = 99;            {Can't load patch resource}
  273.         updPixMemErr = -125;        {insufficient memory to update a pixmap}
  274.         mBarNFnd = -126;            {system error code for MBDF not found}
  275.         hMenuFindErr = -127;        {could not find HMenu's parent in MenuKey}
  276.         noHardware = -200;            {Sound Manager Error Returns}
  277.         notEnoughHardware = -201;    {Sound Manager Error Returns}
  278.         queueFull = -203;            {Sound Manager Error Returns}
  279.         resProblem = -204;            {Sound Manager Error Returns}
  280.         badChannel = -205;            {Sound Manager Error Returns}
  281.         badFormat = -206;            {Sound Manager Error Returns}
  282.         smSDMInitErr = -290;        {Error; SDM could not be initialized.}
  283.         smSRTInitErr = -291;        {Error; Slot Resource Table could not be initialized.}
  284.         smPRAMInitErr = -292;        {Error; Slot Resource Table could not be initialized.}
  285.         smPriInitErr = -293;        {Error; Cards could not be initialized.}
  286.         nmTypErr = -299;
  287.         smEmptySlot = -300;         {No card in slot}
  288.         smCRCFail = -301;            {CRC check failed for declaration data}
  289.         smFormatErr = -302;         {FHeader Format is not Apple's}
  290.         smRevisionErr = -303;        {Wrong revison level}
  291.         smNoDir = -304;             {Directory offset is Nil }
  292.         smLWTstBad = -305;            {Long Word test field <> $5A932BC7.}
  293.         smNosInfoArray = -306;        {No sInfoArray. Memory Mgr error.}
  294.         smResrvErr = -307;            {Fatal reserved error. Resreved field <> 0.}
  295.         smUnExBusErr = -308;        {Unexpected BusError}
  296.         smBLFieldBad = -309;        {ByteLanes field was bad.}
  297.         smFHBlockRdErr = -310;        {Error occured during _sGetFHeader.}
  298.         smDisposePErr = -312;        {_DisposePointer error}
  299.         smNoBoardsRsrc = -313;        {No Board sResource.}
  300.         smGetPRErr = -314;            {Error occured during _sGetPRAMRec (See SIMStatus).}
  301.         smNoBoardId = -315;         {No Board Id.}
  302.         smInitStatVErr = -316;        {The InitStatusV field was negative after primary or secondary init.}
  303.         smInitTblErr = -317;        {An error occured while trying to initialize the Slot Resource Table.}
  304.         smNoJmpTbl = -318;            {SDM jump table could not be created.}
  305.         smBadBoardId = -319;        {BoardId was wrong; re-init the PRAM record.}
  306.         smBusErrTO = -320;            {BusError time out.}
  307.         smBadRefId = -330;            {Reference Id not found in List}
  308.         smBadsList = -331;            {Bad sList: Id1 < Id2 < Id3 ...format is not followed.}
  309.         smReservedErr = -332;        {Reserved field not zero}
  310.         smCodeRevErr = -333;        {Code revision is wrong}
  311.         smCPUErr = -334;            {Code revision is wrong}
  312.         smsPointerNil = -335;        {LPointer is nil From sOffsetData. If this error occurs; check sInfo rec for more information.}
  313.         smNilsBlockErr = -336;        {Nil sBlock error (Dont allocate and try to use a nil sBlock)}
  314.         smSlotOOBErr = -337;        {Slot out of bounds error}
  315.         smSelOOBErr = -338;         {Selector out of bounds error}
  316.         smNewPErr = -339;            {_NewPtr error}
  317.         smBlkMoveErr = -340;        {_BlockMove error}
  318.         smCkStatusErr = -341;        {Status of slot = fail.}
  319.         smGetDrvrNamErr = -342;     {Error occured during _sGetDrvrName.}
  320.         smDisDrvrNamErr = -343;     {Error occured during _sDisDrvrName.}
  321.         smNoMoresRsrcs = -344;        {No more sResources}
  322.         smsGetDrvrErr = -345;        {Error occurred during _sGetDriver.}
  323.         smBadsPtrErr = -346;        {Bad pointer was passed to sCalcsPointer}
  324.         smByteLanesErr = -347;        {NumByteLanes was determined to be zero.}
  325.         smOffsetErr = -348;         {Offset was too big (temporary error}
  326.         smNoGoodOpens = -349;        {No opens were successfull in the loop.}
  327.         smSRTOvrFlErr = -350;        {SRT over flow.}
  328.         smRecNotFnd = -351;         {Record not found in the SRT.}
  329.         slotNumErr = -360;            {invalid slot # error}
  330.         gcrOnMFMErr = -400;         {gcr format on high density media error}
  331.         rgnTooBigErr = -500;
  332.         teScrapSizeErr = -501;        {scrap item too big for text edit record}
  333.         hwParamErr = -502;            {bad selector for _HWPriv}
  334.  
  335. {  The following errors are for primary or secondary init code.  The errors are logged in the}
  336. {vendor status field of the sInfo record.  Normally the vendor error is not Apple's concern,}
  337. {but a special error is needed to patch secondary inits.}
  338. {}
  339. {}
  340.  
  341.         svTempDisable = -32768;     {Temporarily disable card but run primary init.}
  342.         svDisabled = -32640;        {Reserve range -32640 to -32768 for Apple temp disables.}
  343.         siInitSDTblErr = 1;         {slot int dispatch table could not be initialized.}
  344.         siInitVBLQsErr = 2;         {VBLqueues for all slots could not be initialized.}
  345.         siInitSPTblErr = 3;         {slot priority table could not be initialized.}
  346.         sdmJTInitErr = 10;            {SDM Jump Table could not be initialized.}
  347.         sdmInitErr = 11;            {SDM could not be initialized.}
  348.         sdmSRTInitErr = 12;         {Slot Resource Table could not be initialized.}
  349.         sdmPRAMInitErr = 13;        {Slot PRAM could not be initialized.}
  350.         sdmPriInitErr = 14;         {Cards could not be initialized.}
  351.         dsMBarNFnd = 85;            {Menu Manager Errors}
  352.         dsHMenuFindErr = 86;        {Menu Manager Errors}
  353.  
  354.  
  355.  
  356.     procedure SysError (errorCode: INTEGER);
  357.     inline
  358.         $301F, $A9C9;
  359.  
  360.     { UsingErrors }
  361.  
  362.  
  363. implementation
  364. end.
  365.  
  366.